package com.ruoyi.exchangeCode.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 兑换码对象 exchange_code
 * 
 * @author zunzun
 * @date 2023-11-22
 */
public class ExchangeCode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序列号 */
    private Long id;

    /** 兑换码 */
    @Excel(name = "兑换码")
    private String code;

    /** 积分 */
    @Excel(name = "积分")
    private Long integral;

    /** 用户Id */
    @Excel(name = "用户Id")
    private Long userId;

    /** 兑换时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兑换时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exchangeDate;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public int getAddCount() {
        return addCount;
    }

    public void setAddCount(int addCount) {
        this.addCount = addCount;
    }

    /**
     * 添加个数     */
    private int addCount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setIntegral(Long integral) 
    {
        this.integral = integral;
    }

    public Long getIntegral() 
    {
        return integral;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setExchangeDate(Date exchangeDate) 
    {
        this.exchangeDate = exchangeDate;
    }

    public Date getExchangeDate() 
    {
        return exchangeDate;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("integral", getIntegral())
            .append("userId", getUserId())
            .append("exchangeDate", getExchangeDate())
            .append("status", getStatus())
            .toString();
    }
}
